# Contributor: Alexey Yerin <yyp@disroot.org>
# Maintainer: Alexey Yerin <yyp@disroot.org>
pkgname=tree-sitter-haskell
pkgver=0.23.0
pkgrel=0
pkgdesc="Haskell grammar for tree-sitter"
url="https://github.com/tree-sitter/tree-sitter-haskell"
arch="all"
license="MIT"
makedepends="tree-sitter-dev"
checkdepends="tree-sitter-cli"
install_if="tree-sitter-grammars"
source="https://github.com/tree-sitter/tree-sitter-haskell/archive/v$pkgver/tree-sitter-haskell-$pkgver.tar.gz"

build() {
	abuild-tree-sitter build
}

check() {
	tree-sitter test
}

package() {
	DESTDIR="$pkgdir" abuild-tree-sitter install
}

sha512sums="
22a3996bdfc06929caa91e6e6a1430a052fddba6efa89721cd357d6a2a15670be09b66b7e8057981d5fe781c3d72f21ddc8ed3b2022b6faa4588215347545e0d  tree-sitter-haskell-0.23.0.tar.gz
"
